/// currentTime : 1626845729206
/// data : {"allowAtt":1,"allowGreet":1,"chatRecordTimeOut":"-1.0","chatSyncTimeLen":-1,"closeTelephoneFind":1,"friendFromList":"1,2,3,4,5","friendsVerify":0,"isEncrypt":0,"isInside":0,"isKeepalive":1,"isOpenOnline":0,"isTyping":0,"isUseGoogleMap":0,"isVibration":0,"multipleDevices":1,"nameSearch":1,"openService":0,"phoneSearch":1,"sayHello":0,"showLastLoginTime":1,"showTelephone":1}
/// resultCode : 1

class UserSettingsModel {
  int currentTime;
  Data data;
  int resultCode;
  String resultMsg;

  UserSettingsModel({
      this.currentTime, 
      this.data, 
      this.resultCode,this.resultMsg});

  UserSettingsModel.fromJson(dynamic json) {
    currentTime = json["currentTime"];
    data = json["data"] != null ? Data.fromJson(json["data"]) : null;
    resultCode = json["resultCode"];
    resultMsg = json["resultMsg"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["currentTime"] = currentTime;
    if (data != null) {
      map["data"] = data.toJson();
    }
    map["resultCode"] = resultCode;
    map["resultMsg"] = resultMsg;
    return map;
  }

}

/// allowAtt : 1
/// allowGreet : 1
/// chatRecordTimeOut : "-1.0"
/// chatSyncTimeLen : -1
/// closeTelephoneFind : 1
/// friendFromList : "1,2,3,4,5"
/// friendsVerify : 0
/// isEncrypt : 0
/// isInside : 0
/// isKeepalive : 1
/// isOpenOnline : 0
/// isTyping : 0
/// isUseGoogleMap : 0
/// isVibration : 0
/// multipleDevices : 1
/// nameSearch : 1
/// openService : 0
/// phoneSearch : 1
/// sayHello : 0
/// showLastLoginTime : 1
/// showTelephone : 1

class Data {
  int allowAtt;
  int allowGreet;
  String chatRecordTimeOut;
  double chatSyncTimeLen;
  int closeTelephoneFind;
  String friendFromList;
  int friendsVerify;
  int isEncrypt;
  int isInside;
  int isKeepalive;
  int isOpenOnline;
  int isTyping;
  int isUseGoogleMap;
  int isVibration;
  int multipleDevices;
  int nameSearch;
  int openService;
  int phoneSearch;
  int sayHello;
  int showLastLoginTime;
  int showTelephone;

  Data({
      this.allowAtt, 
      this.allowGreet, 
      this.chatRecordTimeOut, 
      this.chatSyncTimeLen, 
      this.closeTelephoneFind, 
      this.friendFromList, 
      this.friendsVerify, 
      this.isEncrypt, 
      this.isInside, 
      this.isKeepalive, 
      this.isOpenOnline, 
      this.isTyping, 
      this.isUseGoogleMap, 
      this.isVibration, 
      this.multipleDevices, 
      this.nameSearch, 
      this.openService, 
      this.phoneSearch, 
      this.sayHello, 
      this.showLastLoginTime, 
      this.showTelephone});

  Data.fromJson(dynamic json) {
    allowAtt = json["allowAtt"];
    allowGreet = json["allowGreet"];
    chatRecordTimeOut = json["chatRecordTimeOut"];
    chatSyncTimeLen = json["chatSyncTimeLen"];
    closeTelephoneFind = json["closeTelephoneFind"];
    friendFromList = json["friendFromList"];
    friendsVerify = json["friendsVerify"];
    isEncrypt = json["isEncrypt"];
    isInside = json["isInside"];
    isKeepalive = json["isKeepalive"];
    isOpenOnline = json["isOpenOnline"];
    isTyping = json["isTyping"];
    isUseGoogleMap = json["isUseGoogleMap"];
    isVibration = json["isVibration"];
    multipleDevices = json["multipleDevices"];
    nameSearch = json["nameSearch"];
    openService = json["openService"];
    phoneSearch = json["phoneSearch"];
    sayHello = json["sayHello"];
    showLastLoginTime = json["showLastLoginTime"];
    showTelephone = json["showTelephone"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["allowAtt"] = allowAtt;
    map["allowGreet"] = allowGreet;
    map["chatRecordTimeOut"] = chatRecordTimeOut;
    map["chatSyncTimeLen"] = chatSyncTimeLen;
    map["closeTelephoneFind"] = closeTelephoneFind;
    map["friendFromList"] = friendFromList;
    map["friendsVerify"] = friendsVerify;
    map["isEncrypt"] = isEncrypt;
    map["isInside"] = isInside;
    map["isKeepalive"] = isKeepalive;
    map["isOpenOnline"] = isOpenOnline;
    map["isTyping"] = isTyping;
    map["isUseGoogleMap"] = isUseGoogleMap;
    map["isVibration"] = isVibration;
    map["multipleDevices"] = multipleDevices;
    map["nameSearch"] = nameSearch;
    map["openService"] = openService;
    map["phoneSearch"] = phoneSearch;
    map["sayHello"] = sayHello;
    map["showLastLoginTime"] = showLastLoginTime;
    map["showTelephone"] = showTelephone;
    return map;
  }

}